import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ContentLeftComponent } from './content-left/content-left.component';//左侧固定栏
import { IndexComponent } from './index/index.component';//首页
import { DeanComponent } from './dean/dean.component';//院长介绍
import { InstituteComponent } from './institute/institute.component';//研究院介绍
import { InstituteMemberComponent } from './institute-member/institute-member.component';//研究院成员介绍
import { ExpertComponent } from './expert/expert.component';//专家介绍
import { ZhouyiConferenceComponent } from './zhouyi-conference/zhouyi-conference.component';//周易大会
import { FengShuiComponent } from './feng-shui/feng-shui.component';//风水布局
import { PlanningComponent } from './planning/planning.component';//企业策划
import { ContactUsComponent } from './contact-us/contact-us.component';//关于我们
import { SizhuComponent } from './sizhu/sizhu.component';//四柱文章
import { GeographyComponent } from './geography/geography.component';//地理风水文章
import { HandFaceComponent } from './hand-face/hand-face.component';//手面相
import { ChoiceDayComponent } from './choice-day/choice-day.component';//择日文章
import { NamingComponent } from './naming/naming.component';//起名改运
import { ConditioningComponent } from './conditioning/conditioning.component';//调理化解
import { GossipComponent } from './gossip/gossip.component';//八卦六爻文章
import { DiseaseComponent } from './disease/disease.component';//疾病与健康
import { CaseComponent } from './case/case.component';//案例欣赏
import { ExchangeComponent } from './exchange/exchange.component';//学员交流
import { CultureComponent } from './culture/culture.component';//佛道文化
import { NewsComponent } from './news/news.component';//易学新闻
import { WeiboComponent } from './weibo/weibo.component';//微博
import { AuspiciousComponent } from './auspicious/auspicious.component';//吉祥用品
import { JoinComponent } from './join/join.component';//加盟合作
import { BranchComponent } from './branch/branch.component';//分支结构
import { ExamineComponent } from './examine/examine.component';//审核认证
import { CertificateComponent } from './certificate/certificate.component';//证书在线查询
import { ClassroomComponent } from './classroom/classroom.component';//周易讲堂
import { ServiceComponent } from './service/service.component';//服务价格
import { VideoComponent } from './video/video.component';//视频
import { ReviewComponent } from './review/review.component';//精彩回顾
import { PayComponent } from './pay/pay.component';//付款方式







// const routes: Routes = [
//   {path: '',redirectTo:'index',pathMatch:'full'},
//   {path:'index',component:IndexComponent},
//   {path:'dean',component:DeanComponent},
//   {path:'institute',component:InstituteComponent},
//   {path:'institute-member',component:InstituteMemberComponent},
//   {path:'expert',component:ExpertComponent},
//   {path:'zhouyi-Conference',component:ZhouyiConferenceComponent},
//   {path:'feng-shui',component:FengShuiComponent},
//   {path:'planning',component:PlanningComponent}

// ];

const routes: Routes = [
  { path: '', redirectTo: 'index', pathMatch: 'full' },
  { path: 'index', component: IndexComponent },
  { path: 'dean', component: DeanComponent },
  { path: 'institute', component: InstituteComponent },
  { path: 'institute-member', component: InstituteMemberComponent },
  { path: 'expert', component: ExpertComponent },
  { path: 'zhouyi-Conference', component: ZhouyiConferenceComponent },
  { path: 'feng-shui', component: FengShuiComponent },
  { path: 'planning', component: PlanningComponent },
  { path: 'weibo', component: WeiboComponent },
  { path: 'auspicious', component: AuspiciousComponent },
  { path: 'Join', component: JoinComponent },
  { path: 'Branch', component: BranchComponent },
  { path: 'examine', component: ExamineComponent },
  { path: 'certificate', component: CertificateComponent },
  { path: 'classroom', component: ClassroomComponent },
  { path: 'service', component: ServiceComponent },
  { path: 'video', component: VideoComponent },
  { path: 'review', component: ReviewComponent },
  { path: 'pay', component: PayComponent },
  {
    path: 'detail', component: ContentLeftComponent,
    children: [
      { path: 'dean-introduction', component: DeanComponent },
      { path: 'contact-us', component: ContactUsComponent },
      { path: 'sizhu', component: SizhuComponent },
      { path: 'Geography', component: GeographyComponent },
      { path: 'hand-face', component: HandFaceComponent, },
      { path: 'Choice-day', component: ChoiceDayComponent },
      { path: 'Naming', component: NamingComponent },
      { path: 'Conditioning', component: ConditioningComponent },
      { path: 'gossip', component: GossipComponent },
      { path: 'disease', component: DiseaseComponent },
      { path: 'case', component: CaseComponent },
      { path: 'exchange', component: ExchangeComponent },
      { path: 'culture', component: CultureComponent },
      { path: 'news', component: NewsComponent },
      { path: 'Branch', component: BranchComponent },

    ]
  }
];



@NgModule({
  // declarations: [IndexComponent],
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
